home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / mdm.000 / mdm / Makefile < prev    next >
Makefile  |  1993-04-07  |  2KB  |  60 lines

  1. #
  2. # Makefile for the LINUX Modem Server Version 2
  3. #
  4. # Compile used is GNU C
  5. #
  6. CC = gcc
  7. #
  8. # -DDEBUG for misc debugging to be sent to STDERR/logging device
  9. # -DLOGDEV = "/dev/tty8" for logging output to be sent to a Virtual TTY 
  10. # -DLOGFILE = "/usr/adm/modem.log" for logging output to be sent to a logfile
  11. # -DCMGET if you have TIOCMGET function (Newer kernals) (97pl4 on I believe)
  12. # (Not implemented yet) -DMTMP if you want /etc/mtmp to be updated
  13. # (Not implemented yet) -DUTMP if you want /etc/utmp to be updated
  14. #
  15. EXTRA = '-DLOGDEV="/dev/tty8"' '-DLOGFILE="/usr/adm/modem.log"'  
  16. EXTRA2 = -Wall # -DLINESTAT -DCMGET -DUTMP
  17. #
  18. # Optimisers..
  19. #
  20. OPTIM = -O6 -m486 -fomit-frame-pointer -s -N
  21. #
  22. # Debug options
  23. #
  24. DEBUG =# -DDEBUG #-g
  25. #
  26.  
  27. CFLAGS = $(EXTRA) $(EXTRA2) $(OPTIM) $(DEBUG)
  28.  
  29. CFILES = modem.c fgetsraw.c strupr.c fgetstr.c flog.c setup.c
  30. OFILES = modem.o fgetsraw.o strupr.o fgetstr.o flog.o setup.o
  31. HFILES = modem.h
  32.  
  33. all: modem
  34.  
  35. modem: $(OFILES)
  36.     $(CC) $(CFLAGS) -o modem $(OFILES)
  37.  
  38. install: modem
  39.     install -s -g system -o root -m 110 modem /etc
  40.     install -d /etc/default
  41.     install -g system -o root -m 644 modem.cfg /etc/default/modem
  42.     install -g system -o root -m 644 ttys1.cfg /etc/default/ttys1
  43.  
  44. clean:
  45.     rm -f *.o modem
  46.  
  47. tar:    $(CFILES) $(HFILES)
  48.     tar -cvf mdm.tar *.c *.h COPY* Makefile modem.cfg ttys1.cfg README version BUGS
  49.  
  50. shar:    $(CFILES) $(HFILES)
  51.     shar *.c *.h COPY* Makefile modem.cfg ttys1.cfg README version BUGS >mdm.shar
  52.  
  53. # dep
  54. modem.o: modem.c modem.h
  55. fgetsraw.o: fgetsraw.c
  56. strupr.o: strupr.c
  57. fgetstr.o: fgetstr.c
  58. flog.o: flog.c
  59. setup.o: setup.c modem.h
  60.